package com.zjitc.service;

import com.zjitc.model.*;

import java.util.List;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/5/28 16:51
 * @description:
 */
public interface AdminService {

  Adminuser doLogin(String username, String password);

  List<User> findAllUser();

  void userDelete(Integer uid);

  List<Category> findAllCategory();

  void add(Category category);

  void delete(Integer cid);

  void update(Category category);

  Category findByCid(Integer cid);

  List<CategorySecond> findAllCS();

  CategorySecond findByCsid(Integer csid);

  void csAdd(CategorySecond categorySecond);

  void csDelete(Integer csid);

  void csUpdate(CategorySecond categorySecond);

  void pAdd(Product product);

  void pDelete(Integer pid);

  void pUpdate(Product product);
}
